package com.framework.myandroid.utils

import android.Manifest

object Constant {
    const val PROJECT_NAME = "3502_helper"
    const val DOUBLE_CLICK = 2000
    const val APP_TOKEN = "Authorization"
    const val UNKNOW_ERROR_CODE = -1
    const val UNKNOW_ERROR_MESSAGE = "unknow error"
    const val SESSION_TIMEOUT = 10000
    const val REQUEST_CODE_IMAGE = 123
    const val REQUEST_CODE_CAMERA = 223
    const val REQUEST_CODE_VIDEO = 323
    const val REQUEST_CODE_VIDEO_CAMERA = 423
    const val REQUEST_PERMISSION_CODE = 666
    const val TIMEOUT_EXCEPTION = "java.net.SocketTimeoutException"
    const val ACTIVITY_NAME = "activity_name"
    const val LIST_EMPTY = 10002
    const val TYPE_TRAVEL = 0
    const val TYPE_REIM = 1
    const val TRAVEL_START = 0
    const val TRAVEL_APPROVE = 1
    const val REIM_START = 0
    const val REIM_APPROVE = 1

    val PERMISSIONS = arrayOf(
        Manifest.permission.CAMERA,
        Manifest.permission.ACCESS_FINE_LOCATION,
        Manifest.permission.ACCESS_COARSE_LOCATION,
        Manifest.permission.READ_EXTERNAL_STORAGE,
        Manifest.permission.WRITE_EXTERNAL_STORAGE,
        Manifest.permission.READ_PHONE_STATE,
        Manifest.permission.CHANGE_WIFI_STATE,
        Manifest.permission.INTERNET,
        Manifest.permission.ACCESS_NETWORK_STATE,
        Manifest.permission.WRITE_SETTINGS,
        Manifest.permission.ACCESS_WIFI_STATE
    )
}